<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
  <title>注册页面</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/static/layui-v2.5.7/layui/css/layui.css"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->

</head>


<body>


<ul class="layui-nav">
    <li class="layui-nav-item"><a href="/jump3">主页</a></li>
  <li class="layui-nav-item"><a href="javascript:void(0)" onClick="showBox()" id="zh_click">登录</a></li>
  <li class="layui-nav-item"><a href="/wqh_regist">注册</a>
  <dl class="layui-nav-child">
      <dd><a href="/wqh_regist">个人</a></dd>
      <dd><a href="/wqh_firmregist">企业</a></dd>
    </dl>
  </li>
</ul>



<script src="/static/layui-v2.5.7/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块 <div style="background:url('/static/img/dimg0.png') repeat;width:100%">添加文字...添加文字...添加文字...</div>

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
</script>
{% for msg in get_flashed_messages() %}{% endfor %}




<!--
模块注释：下方模块是网页中用来输入信息的模块
模块概述：下方会先显示出这是企业注册的页面，然后输入用户名，密码，重复确认密码和验证码，若用户名无重复，
        两次密码输入相同且验证码正确，点击注册后即可注册成功，若注册失败则提示相关问题重新返回该界面
        再次输入信息进行注册，同时可以对已经输入的信息进行重置
作者：王千航
创建时间：2021/3/1
更新时间：2021/3/13
-->

<div style="padding: 20px; background-color: #F2F2F2;">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>企业注册</legend>
</fieldset>
    <form class="layui-form" action="/firmregistuser" style="width: 60%;margin-top: 20px;">

<div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <input type="text" name="user"  placeholder="请输入用户名" autocomplete="off" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="password" name="password"  placeholder="请输入密码" autocomplete="off" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">确认密码</label>
    <div class="layui-input-block">
      <input type="password" name="repassword"  placeholder="请输入确认密码" autocomplete="off" class="layui-input">
    </div>
  </div>


<div class="layui-form-item">
    <label class="layui-form-label">企业验证码</label>
    <div class="layui-input-block">
      <input type="password" name="captcha"  placeholder="请输入企业验证码" autocomplete="off" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <div class="layui-input-block">
      <!--<button class="layui-btn" lay-submit lay-filter="formDemo" onclick="alert('注册成功')">注册</button>-->
      <button class="layui-btn" lay-submit lay-filter="formDemo">注册</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>


 <!--flash-->
{% for msg in get_flashed_messages() %}
    <script>
        alert("{{ msg }}");
    </script>
{% endfor %}
<!--flash-->

<!-- 注册
<form method="post" action='/registuser'>
            <label>用户名：<input type="text" name="user" value=""></label><br>
            <label>密码：<input type="password" name="password" value=""></label><br>
            <label>确认密码：<input type="password" name="repassword" value=""></label><br>
            <input type="submit" value="注册"><br>
        </form>     -->
</body>
</html>
